//引入vue和vuex
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
const store = new Vuex.Store({//全局变量定义
    state: { 
	   token:"",
	   locale: "zh",  //语言 
       homeRed:'#DD2131',
	   tabhHeight:0,
	   tabh:0,
	   company_status:3//是否企业认证 0 未认证  3已认证
	    
    }, 
    mutations: {
	 chantoken(state,value){
		  state.token=value 
	 },
	  changeLocale(state,value){
		 state.locale=value 
	  },
    
	  changetabhHeight(state,value){ 
	  		  state.tabhHeight=value
	  },
	  changetabh(state,value){
	  		  state.tabh=value
	  },
	  changecompany_status(state,val){
		    state.company_status=val
	  }
    },
})
export default store